from my315ok.flowrate import total,write

def addaccess(site,event):
#    import pdb
#    pdb.set_trace()
#    obj = site
#    pc = getToolByName(site, 'portal_catalog')
    global total
    suffix = ['.js','.css','.swf','.tar','.zip']
    URL = event.request.getURL()
    cursuffix = URL.split('/')[-1]
    dot = "."
    if dot in cursuffix:
        return
    total = total + 1 
    write(str(total),'total')
           
    return
    
    
   
